//
//  TVHomeModel.m
//  悦享
//
//  Created by dllo on 16/3/18.
//  Copyright © 2016年 张洪国. All rights reserved.
//

#import "TVHomeModel.h"

@implementation TVHomeModel

- (void)setValue:(id)value forKey:(NSString *)key{
    
   
    
    [super setValue:value forKey:key];
    
    self.arrModel = [NSMutableArray array];
    
    if ([key isEqualToString:@"templateData"]) {
        
        for (NSDictionary *dic in value) {
            TVModel *model = [[TVModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [_arrModel addObject:model];
        }
        
    }
    
    
}



@end

